<?php
/**
 * Created by PhpStorm.
 * User: xiong <1099446868@qq.com>
 * DateTime: 2018/12/15
 * TIME: 23:10
 */

Route::get('book/:id', 'Book/book'); //详情页
Route::get('catalog/:id', 'Book/catalog'); //目录页
Route::post('content/:id', 'Book/content'); //获取内容
Route::get('content/:bid/:id', 'Book/content');  //内容页

Route::get('search/:searchname', 'Book/search');
Route::post('s', 'Book/searchtodetails');
Route::get('find', 'Book/find');
Route::get('category/:id', 'Index/category');
Route::get('rank/:rid/:page', 'Book/rank');
Route::get('download/:id', 'Book/download');

Route::get('cache', 'Book/cache');
Route::get('yasuo', 'Book/yasuo');


Route::pattern([
    'searchname'   => '\w+',
    'id' =>'\d+',
    'name' => '\w+',
    'tag' => '\w+',
    'page' => '\d+'
]);